home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
powerb5.zip
/
P5SPR006.TIP
< prev
next >
Wrap
Text File
|
1993-06-01
|
2KB
|
49 lines
When using 1-2-3, I found that I spent lots of time creating
columns of successive numbers. I therefore created a simple
macro that does it for me. To use it, go to the top of your
desired range in other words, the cell where you want the
number 1 and enter the number of cells you want to fill.
Once entered, press <Alt>-N. The macro will automatically
create the column of numbers.
Dominik Tylczynski
Poznan, Poland
Editor's Note: This is one of those macros that everyone
needs to have but that few take the time to write. It also
demonstrates a very powerful way of passing information to a
macro: putting information that the macro needs in the
current cell just before invoking it. To create the macro,
enter the text into two columns, as shown, anywhere on your
worksheet. Remember to first type an apostrophe (') when
entering cell contents that begin with a slash (/),
backslash (\), or number. Once everything is entered, select
/Range·Name·Label·Right, highlight the range in the first
column (A1..A12 in this example), and press <Enter>. The
macro can be found in the file SUCCESIV.WK1 on your
PowerBase *.* Volume 5 diskette. The text of the macro is
shown below for reference.
A B C D E
1 \n /rnchere~~
2 {for counter,2,here,1,nsub}
3 {goto}counter~
4 XXXX~
5 {goto}here~
6 1~
7 /rndhere~
8
9 nsub {d}
10 /ccounter~~
11
12 counter XXXX
Title: Running the Numbers
Category: SPR
Issue Date: November, 1992
Editor: Brett Glass
Supplementary Files: P5SPR\SUCCESIV.WK1
Filename: P5SPR006.TIP